﻿using Microsoft.JSInterop;

namespace BlazorApp.Client;
public static class Functions
{
    [JSInvokable]
    public static int Add()
    {
        return 1 + 5;
    }

    [JSInvokable]
    public static Task<int> AddAsync()
        => Task.FromResult(1 + 10);
}


public class JsFunc
{

    [JSInvokable("DoAdd")]
    public int Add()
    {
        return 1 + 5;
    }

    [JSInvokable]
    public Task<int> AddAsync()
        => Task.FromResult(1 + 10);
}